package com.test;

public class MyRunnable implements Runnable{


    @Override
    public void run() {
        for (int i=0;i<3000;i++){
//            获取当前线程对象的使用
            Thread thread = Thread.currentThread();

            System.out.println(thread.getName() + "执行：" +i);
        }
    }
}
